package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author letokenlabs
 * @date 2022/11/24$
 */
@Data
@ApiModel(value = "添加admin充值配置请求对象", description = "添加admin充值配置请求对象")
public class AddRechargeConfigReq {

    @ApiModelProperty(name = "tokenId", value = "代币id", required = true, example = "1")
    @NotNull(message = "代币不能为空")
    private Integer tokenId;

    @ApiModelProperty(name = "extractAddress", value = "提现钱包地址", required = true, example = "admin")
    @NotBlank(message = "提现钱包地址不能为空")
    private String extractAddress;

//    @ApiModelProperty(name = "extractRatio", value = "提现钱包比例，单位%", required = true, example = "50")
//    @NotNull(message = "提现钱包比例不能为空")
//    private Integer extractRatio;

    @ApiModelProperty(name = "proceduresAddress", value = "手续费钱包地址", required = true, example = "admin")
    @NotBlank(message = "手续费钱包地址不能为空")
    private String proceduresAddress;

//    @ApiModelProperty(name = "proceduresRatio", value = "手续费钱包比例,单位%", required = true, example = "50")
//    @NotNull(message = "手续费钱包比例不能为空")
//    private Integer proceduresRatio;

    @ApiModelProperty(value = "归集地址", required = true, example = "")
    @NotBlank(message = "归集地址不能为空！")
    private String collectionAddress;

    @ApiModelProperty( value = "归集资金分配门槛", required = true, example = "50")
    @NotNull(message = "归集资金分配门槛不能为空！")
    private BigDecimal dispatchLimit;

    @ApiModelProperty( value = "归集资金门槛", required = true, example = "50")
    @NotNull(message = "归集资金门槛不能为空！")
    private BigDecimal collectionLimit;


}
